/*
 * SpringAttackCommand.cpp
 *
 *  Created on: Nov 20, 2008
 *      Author: Ryan
 */

#include "SpringAttackCommand.h"

SpringAttackCommand::SpringAttackCommand( OOInterface::ConstUnitPtr attackee ) :
	AttackCommand( attackee )
{
}

SpringAttackCommand::~SpringAttackCommand()
{
}

::Command* SpringAttackCommand::getCommand() const
{
	OOInterface::ConstUnitPtr attackee = getAttackee();

	::Command* cmd = new ::Command;
	cmd->id = CMD_ATTACK;
	cmd->params.push_back( attackee->getID() );

	return cmd;
}
